/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Pojo;

/**
 *
 * @author Patricia Brito
 */
public class Knn {
    
    private String buying;
    private String maint;
    private String doors;
    private String persons;
    private String lug_boot;
    private String safety;
    private String classe;
    private Double distancia;
    
    public Knn(){
    }

    public Knn(String[] vetor) {
        this.buying = vetor[0];
        this.maint = vetor[1];
        this.doors = vetor[2];
        this.persons = vetor[3];
        this.lug_boot = vetor[4];
        this.safety = vetor[5];
        this.classe = vetor[6];
    }
          
    /**
     * @return the buying
     */
    public String getBuying() {
        return buying;
    }

    /**
     * @param buying the buying to set
     */
    public void setBuying(String buying) {
        this.buying = buying;
    }

    /**
     * @return the maint
     */
    public String getMaint() {
        return maint;
    }

    /**
     * @param maint the maint to set
     */
    public void setMaint(String maint) {
        this.maint = maint;
    }

    /**
     * @return the doors
     */
    public String getDoors() {
        return doors;
    }

    /**
     * @param doors the doors to set
     */
    public void setDoors(String doors) {
        this.doors = doors;
    }

    /**
     * @return the persons
     */
    public String getPersons() {
        return persons;
    }

    /**
     * @param persons the persons to set
     */
    public void setPersons(String persons) {
        this.persons = persons;
    }

    /**
     * @return the lug_boot
     */
    public String getLug_boot() {
        return lug_boot;
    }

    /**
     * @param lug_boot the lug_boot to set
     */
    public void setLug_boot(String lug_boot) {
        this.lug_boot = lug_boot;
    }

    /**
     * @return the safety
     */
    public String getSafety() {
        return safety;
    }

    /**
     * @param safety the safety to set
     */
    public void setSafety(String safety) {
        this.safety = safety;
    }

    /**
     * @return the clase
     */
    public String getClasse() {
        return classe;
    }

    /**
     * @param clase the clase to set
     */
    public void setClasse(String clase) {
        this.classe = clase;
    }

    public Double getDistancia() {
        return distancia;
    }

    public void setDistancia(Double distancia) {
        this.distancia = distancia;
    }
    
    public String toString(){
        return getBuying() + ", " + getMaint() + ", " + getDoors() + ", " + getPersons() + ", " + getLug_boot() + ", " + 
                getSafety() + ", " + getClasse();
    }
    
}
